clear
echo Processing tweets...
bin/hadoop fs -rmr /outputPair
bin/hadoop fs -rmr /outputPairCounter
bin/hadoop fs -rmr /inputPairSorter
bin/hadoop fs -mkdir /inputPairSorter
bin/hadoop jar wordcount.jar br.edu.ufcg.ccc.wordcount.PairCount /input /outputPairCounter
bin/hadoop fs -mv /outputPairCounter/part* /inputPairSorter/
bin/hadoop jar wordcount.jar br.edu.ufcg.ccc.wordcount.ResultSorter /inputPairSorter /outputPair
echo Finished processing tweets.
